package com.dj.mingkong.admin.biz.repository.database.music;

import com.dj.mingkong.common.infrastructure.base.dto.query.QueryVo;
import com.dj.mingkong.common.infrastructure.base.repository.BaseDatabaseRepository;
import com.dj.mingkong.common.infrastructure.eo.database.music.MusicResourceEo;
import com.dj.mingkong.admin.biz.repository.database.music.mapper.MusicResourceMapper;
import org.springframework.stereotype.Repository;


/**
 * 音乐资源repository
 *
 * @author zenglonghui
 * @date: 2022/10/20 11:15
 */
@Repository
public class MusicResourceRepository extends BaseDatabaseRepository<MusicResourceMapper, MusicResourceEo, QueryVo> {
    public boolean deleteByMusicId(Long musicId) {
        return lambdaUpdate().eq(MusicResourceEo::getMusicId, musicId).remove();
    }
}
